28 #ifndef ACCOUNTS_ERROR_H
29 #define ACCOUNTS_ERROR_H
34 #include <Accounts/accountscommon.h>
38 typedef struct _GError GError;
62 Error(): m_type(NoError), m_message(QString()) { registerType(); }
69 m_type(src.type()), m_message(src.message()) {}
77 m_type(type), m_message(message)
85 { m_type = src.
type(); m_message = src.
message();
return *
this; }
104 friend class Account;
106 Error(
const GError *error);
108 inline void registerType();
122 void Accounts::Error::registerType()
124 qRegisterMetaType<Accounts::Error>(
"Accounts::Error");
Base object definition for accounts error handling.
Error()
Basic constructor.
Error & operator=(const Error &src)
Assignment operator.
Error(ErrorType type, const QString &message=QString())
Constructor.
virtual ~Error()
Destructor.
ErrorType
Error codes for all the accounts errors.
Error(const Error &src)
Copy constructor.
Manager of accounts, services and providers.